﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LunwenYun.Portal.Biz;
using LunwenYun.Tool.Framework;
using System.Threading;

namespace LunwenYun.Portal.Web.Controllers
{
    public class ExchangeController : Controller
    {
        //
        // GET: /Exchange/

        public void Index(string password)
        {
            LogHelper.Write(CommonLogger.System, LogLevel.Info, "定时任务执行方法被调用 /Exchange/Index?password=" + password);
            ThreadPool.QueueUserWorkItem(o =>
            {
                var pwd = LunwenYun.Tool.Framework.HashAlgorithm.Encrypt("lunwenyun@chongshantech@20!#", Tool.Framework.EncryptMode.md5);
                if (password == pwd)
                {
                    SystemBiz.CheckWaitMemberConfirmArticles();
                }
                else
                {
                    LogHelper.Write(CommonLogger.System, LogLevel.Info, "密码校验失败");
                }
            });
        }

    }
}
